import { FileType } from 'vscode';
import { Entry } from '.';
import { ISystemFile } from '../interface/i-system-file';
import { SystemFileStat } from './file-stat';

/**
 * 文件夹
 *
 * @author chitanda
 * @date 2022-12-14 10:12:18
 * @export
 * @class Directory
 * @extends {SystemFileStat}
 */
export class Directory extends SystemFileStat {
  /**
   * 子目录
   *
   * @author chitanda
   * @date 2021-11-09 09:11:13
   * @type {(Map<string, Entry>)}
   */
  readonly entries: Map<string, Entry> = new Map();

  constructor(public readonly content: ISystemFile) {
    super(content, FileType.Directory);
  }
}
